
        <footer class="text-muted small">
            <hr/>
            &copy; {{ now.Format "2006"}} The Kubernetes Authors.
            Krew is a Kubernetes
                <a href="https://github.com/kubernetes/community/blob/master/sig-cli/README.md#cli-special-interest-group" target="_blank" class="text-info">
                    SIG CLI</a> project.
                <p class="d-none d-md-block">
                    {{- with .File -}}
                        <a href="http://sigs.k8s.io/krew/site/content/{{- .File.Path -}}" target="_blank" class="text-info">
                        Edit Page</a>
                    {{- end -}}
                    {{- if .GitInfo }}
                        &middot;
                        <span id="lastmod"></span>
                    {{- end}}
                </p>
            </footer>
        </div>
    </div><!-- .container -->

    {{ if .GitInfo }}
    <script>
        function writeLastMod(lastMod, commitHash){
            var days = (Date.now()/1000 - lastMod)/(60*60*24);
            var text;
            if (days < 1) {
                text = 'today'
            } else if (days < 2 ) {
                text = 'yesterday'
            } else if (days < 62) {
                text = `${Math.trunc(days)} days ago`
            } else if (days < 365*2) {
                text = `${Math.trunc(days/30)} months ago`
            } else {
                text = `${Math.trunc(days/365)} years ago`
            }
            document.getElementById('lastmod').innerHTML = `Page last updated ` +
                `<a class="text-info" target="_blank"` +
                `href="https://github.com/kubernetes-sigs/krew/commit/${commitHash}">` +
                `${text}</a>.`;
        };
        writeLastMod({{- .Lastmod.Unix -}}, '{{- .GitInfo.Hash -}}');
    </script>
    {{ end }}

</body>
</html>
